package com.workway.dao.impl;

import com.workway.dao.UserDao;
import com.worwkay.model.User;

/**
 * Created by lidu on 14-8-28.
 */
public class UserDaoImpl implements UserDao {
    private int flag;

    @Override
    public void add(User user) {
        System.out.println("A user is saved!");
        System.out.println("flag="+flag);

    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "UserDaoImpl{" +
                "flag=" + flag +
                '}';
    }
}
